import request from '@/utils/request'

export default {
  //登录
  submitLogin(userInfo) {
    return request({
      url: `/api/ucenter/member/login`,
      method: 'post',
      data: userInfo
    })
  },
  //根据token得到用户信息
  getLoginInfo() {
    return request({
      url: `/api/ucenter/member/getLoginInfo`,
      method: 'get'
    })
  }
}